package Funcionalidades.Menues;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Image;

import Funcionalidades.ABMCompetencia.altaParticipante;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import java.awt.FlowLayout;

public class VentanaSalida extends JDialog {

	private static final long serialVersionUID = 1L;
	private JPanel contentPanel;

	public VentanaSalida(FrameUsuarioNoAutenticado noAut, boolean modal) {
		super(noAut, modal);
		
		
		Dimension tam= new Dimension(550, 420);
		setMinimumSize(tam);
		setMaximumSize(tam);
		setPreferredSize(tam);
		setTitle("Gracias y Hasta Luego");
		
		Dimension imagen=new Dimension(100,100);
		Dimension texto= new Dimension(100,100);
		Dimension dpanel= new Dimension(80, 30);
		Dimension datos= new Dimension(150,30);
		
		ImageIcon icon1 = new ImageIcon(altaParticipante.class.getResource("/Imagenes/msn.png"));
		Image img1 = icon1.getImage();
		Image newimg1 = img1.getScaledInstance(100, 100,  java.awt.Image.SCALE_SMOOTH);
		ImageIcon ilazzaroni = new ImageIcon(newimg1);
		

		
		ImageIcon icon2 = new ImageIcon(altaParticipante.class.getResource("/Imagenes/PortadaIzq.png"));
		Image img2 = icon2.getImage();
		Image newimg2 = img2.getScaledInstance(100, 100,  java.awt.Image.SCALE_SMOOTH);
		ImageIcon igaitan = new ImageIcon(newimg2);
		

		
		ImageIcon icon3 = new ImageIcon(altaParticipante.class.getResource("/Imagenes/PortadaIzq.png"));
		Image img3 = icon3.getImage();
		Image newimg3 = img3.getScaledInstance(100, 100,  java.awt.Image.SCALE_SMOOTH);
		ImageIcon iflappo = new ImageIcon(newimg3);
		

		
		ImageIcon icon4 = new ImageIcon(altaParticipante.class.getResource("/Imagenes/PortadaIzq.png"));
		Image img4 = icon4.getImage();
		Image newimg4 = img4.getScaledInstance(100, 100,  java.awt.Image.SCALE_SMOOTH);
		ImageIcon ijacob = new ImageIcon(newimg4);
		

	
		contentPanel= new JPanel();
		getContentPane().setLayout(new BorderLayout());
		JPanel panelTitulo = new JPanel();
		getContentPane().add(panelTitulo, BorderLayout.NORTH);
		
		JLabel lblTitulo = new JLabel("Gracias por utilizar la Aplicacion");
		lblTitulo.setFont(new Font("Vani", Font.PLAIN, 20));
		panelTitulo.add(lblTitulo);
		
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		
		JPanel panelCentral = new JPanel();
		getContentPane().add(panelCentral, BorderLayout.CENTER);
		panelCentral.setLayout(new BoxLayout(panelCentral, BoxLayout.Y_AXIS));
		
		JPanel panel = new JPanel();
		panelCentral.add(panel);
		panel.setMaximumSize(dpanel);
		
		JLabel lblParticipantesEnEl = new JLabel("Participantes en el desarrollo:");
		panel.add(lblParticipantesEnEl);
		
		JPanel panelParticipantes = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panelParticipantes.getLayout();
		flowLayout.setVgap(10);
		flowLayout.setHgap(10);
		panelCentral.add(panelParticipantes);
		
		JPanel flappo = new JPanel();
		flappo.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		panelParticipantes.add(flappo);
		
		JLabel lblImagen = new JLabel(iflappo);
		lblImagen.setBorder(new LineBorder(new Color(0, 0, 0)));
		flappo.add(lblImagen);
		lblImagen.setPreferredSize(imagen);
		
		JLabel lblTxt = new JLabel("Flappo, Nicolas");
		flappo.add(lblTxt);
		lblTxt.setPreferredSize(texto);
		
		JPanel gaitan = new JPanel();
		gaitan.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		panelParticipantes.add(gaitan);
		
		
		JLabel label = new JLabel(igaitan);
		gaitan.add(label);
		label.setPreferredSize(imagen);
		
		JLabel label_1 = new JLabel("Gaitan, Sebastian");
		gaitan.add(label_1);
		label_1.setPreferredSize(texto);
		
		JPanel jacob = new JPanel();
		jacob.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		panelParticipantes.add(jacob);
		
		JLabel label_2 = new JLabel(ijacob);
		jacob.add(label_2);
		label_2.setPreferredSize(imagen);
		
		JLabel label_3 = new JLabel("Jacob, Juan Pablo");
		jacob.add(label_3);
		label_3.setPreferredSize(texto);
		
		JPanel lazzaroni = new JPanel();
		lazzaroni.setBorder(new SoftBevelBorder(BevelBorder.LOWERED, null, null, null, null));
		panelParticipantes.add(lazzaroni);
		
		JLabel label_4 = new JLabel(ilazzaroni);
		lazzaroni.add(label_4);
		label_4.setPreferredSize(imagen);
		
		JLabel label_5 = new JLabel("Lazzaroni, Esteban");
		lazzaroni.add(label_5);
		label_5.setPreferredSize(texto);
		
		JPanel panelAceptar = new JPanel();
		getContentPane().add(panelAceptar, BorderLayout.SOUTH);
		panelAceptar.setMaximumSize(dpanel);
		
		JButton btnAceptar = new JButton("Aceptar");
		panelAceptar.add(btnAceptar);
		btnAceptar.setPreferredSize(datos);

	}


	
}